Skip to content

Resolve path after checking it leads to an existing file #826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

greg0ire
Copy link
Contributor

Running the tool without creating a guides.xml is a valid scenario, and should be supported. This means realpath() may return false, which is not a valid input for is_file().

Fixes #824

Running the tool without creating a guides.xml is a valid scenario, and
should be supported. This means realpath() may return false, which is not
a valid input for is_file().

Fixes phpDocumentor#824
@jaapio jaapio merged commit 91c5377 into phpDocumentor:main Jan 21, 2024
@jaapio
Copy link
Member

jaapio commented Jan 21, 2024

Thanks for addressing this!

@greg0ire greg0ire deleted the fix-crash branch January 21, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when guides-cli is run without a configuration file
2 participants